package com.haut.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.haut.domain.Stu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface StuDao extends BaseMapper<Stu> {

    /*@Select("select * from stu")
    public List<Stu> findALl();

    @Select("select * from stu where id = #{id}")
    public Stu selectById(Integer id);

    @Insert("insert into stu(username,pass,java,math,os) values (#{username},#{pass},#{java},#{math},#{os})")
    public void insertStu(Stu stu);

    @Update("update stu set username = #{username} where id = #{id}")
    public void updateStu(@Param("username") String username, @Param("id") Integer id);

    @Delete("delete from stu where id = #{id}")
    public void deleteStu(Integer id);*/

}
